<?php

namespace plugin\colecms\app\admin\validate;


use app\common\validate\BaseValidate;

class AdPositionValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'name' => 'require',
        'width' => 'require',
        'height' => 'require',
        'identify' => 'require',
    ];

    protected $field = [
        'id' => 'ID',
        'name' => '广告位名称',
        'width' => '宽',
        'height' => '高',
        'identify' => '标识',
    ];
    protected $scene = [
        "id" => [
            'id',
        ],
        "add" => [
            'name',
            'width',
            'height',
            'identify',
        ],
        "update" => [
            'id',
            'name',
            'width',
            'height',
            'identify',
        ],
    ];
}